package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.InventoryPrice;
import cn.stylefeng.guns.sys.modular.system.model.params.InventoryPriceParam;
import cn.stylefeng.guns.sys.modular.system.model.result.InventoryPriceResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangge
 * @since 2020-09-15
 */
public interface InventoryPriceMapper extends BaseMapper<InventoryPrice> {

    /**
     * 获取列表
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    List<InventoryPriceResult> customList(@Param("paramCondition") InventoryPriceParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") InventoryPriceParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    Page<InventoryPriceResult> customPageList(@Param("page") Page page, @Param("paramCondition") InventoryPriceParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author jiangge
     * @Date 2020-09-15
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") InventoryPriceParam paramCondition);

    InventoryPrice selectOneById(@Param("id")Long id);

    /**
     * 根据条件查询
     * @param param
     * @return
     */
    List<InventoryPriceResult> selectInventoryPriceList(@Param("param") InventoryPriceParam param);
}
